import request from '@/utils/request'

export function selectList(params) {
  return request({
    url: '/api/readermagazinecolumn/list',
    method: 'get',
    params
  })
}
export function getSelectColumnBox(params) {
  return request({
    url: '/api/readermagazinecolumn/selectColumns',
    method: 'get',
    params
  })
}

export function getAllColumns(params) {
  return request({
    url: '/api/readermagazinecolumn/selectAll',
    method: 'get',
    params
  })
}


export function insertColumn(data) {
  return request({
    url: '/api/readermagazinecolumn/insert',
    method: 'post',
    data: data
  })
}

export function updateColumn(data) {
  return request({
    url: '/api/readermagazinecolumn/update',
    method: 'post',
    data: data
  })
}
export function deleteColumn(data) {
  return request({
    url: '/api/readermagazinecolumn/delete',
    method: 'post',
    data: data
  })
}

export function deleteColumns(data) {
  return request({
    url: '/api/readermagazinecolumn/deleteIds',
    method: 'post',
    data: data
  })
}